

#ifndef __QARRAY_H__
#define __QARRAY_H__


#include "QtExt.h"
#include <QtCore/QtCore>


class QDomDocument;
class QDomElement;


class QTEXT_DLL QArray : public QVariantList
{
	friend class QDictionary;

public:
	static const int Array;

	QArray();
	QArray(const QArray &other);
	virtual ~QArray();

	QArray &operator =(const QArray &other);

public:
	bool load(const QString &filename);
	bool save(const QString &filename);

	void display();

protected:
	bool serialize(QDomDocument &doc, QDomElement &root);
	bool unserialize(QDomElement &docElem);
};

Q_DECLARE_METATYPE(QArray)

uint qHash(const QVariant &variant);


#endif	/*__QARRAY_H__*/
